﻿using System;
using System.Configuration;

namespace TestConsole {
    class Program {
        static void Main() {
            var connectionString =
            ConfigurationManager
            .ConnectionStrings["WammModelContainer"]
            .ConnectionString;

            var identity = new System.Security.Principal.GenericIdentity("DenaJenkins");
            var principal = new System.Security.Principal.GenericPrincipal(identity, new string[] {});

            //using (var session = new Session(connectionString, principal, new RepositoryFactory())) {

               // var p = new Person();
               // p.LastName = "Jenkins";
               // p.FirstName = "Testing3";
               // p.Family = null;
               // p.Gender = Person.FEMALE;
               // p.BirthDate = new DateTime(1998, 1, 30);
               // session.Add<Person>(p);

               //var p2 = new Person();
               // p2.LastName = "Jenkins";
               // p2.FirstName = "Testing4";
               // p2.Family = null;
               // p2.Gender = Person.FEMALE;
               // p2.BirthDate = new DateTime(1998, 1, 30);
               // session.Add<Person>(p2);

               // session.CommitChanges();

                //var q = session.People;
                //// SessionPeople.FindWhere(p => p.FirstName.StartsWith("A"));
                ////foreach (var person in q) {
                ////    Console.WriteLine(person.FirstName);
                ////}
                //Console.WriteLine("Done!");
                //Console.ReadLine();

            //}

        }
    }
}
